﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Actya.Core.SiteStructure;

namespace Actya.Web.ViewModels.Admin
{
	public class EditSitemapViewModel
	{
		public IEnumerable<SitemapNode> SitemapNodes { get; set; }
		[Required]
		[Display(Name="Title")]
		public string NewNodeTitle { get; set; }
		[Display(Name = "Type")]
		public SitemapNodeType NewNodeType { get; set; }
		[Display(Name = "Parent")]
		public string NewNodeParentId { get; set; }
		[Display(Name = "Url")]
		public string NewNodeUrl { get; set; }
		[Display(Name = "Page")]
		public string NewNodePageId { get; set; }
		[Display(Name = "Show in navigation")]
		public bool NewNodeShowInNavigation { get; set; }
		[Display(Name = "Show in sitemap")]
		public bool NewNodeShowInSitemap { get; set; }
	}
}